<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>移出事件</title>
		<script src="js/jquery-3.3.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			// $(function(){
			// 	// $("#btn1").on("click",function(){
			// 	// 	alert("俺是按钮1");
			// 	// })
			// 	// $("#btn2").on("click",function(){
			// 	// 	alert("俺是按钮2");
			// 	// 	$("#btn1").unbind("click");//unbind()；移出事件
			// 	// })
			// 	$("#btn1").on("click",function(){
			// 		alert("俺是按钮1");
			// 	}).trigger("click");//模拟事件
			// })
			
			var arr=[10,20,"30","abc"];
			document.write(arr.indexOf("30"));
			var arr1 = ["a","b","c"];
			var arr2 = [1,2,3];
			var newArr = arr1.concat(arr2,"再次添加");
			document.write(newArr+"<br>"+arr1+"<br>")
			//newArr; //["a","b","c",1,2,3,"再次添加"];
			//arr1; //["a","b","c"]
			var arr = [1,2];
			arr.push("a","b");
			document.write(arr+"<br>");//[1,2,"a","b"]
			document.write(arr.pop()+"<br>"); //pop() 返回“b”;
			document.write(arr.pop()+"<br>"); //pop() 返回“b”;
			document.write(arr.pop()+"<br>"); //pop() 返回“b”;
			document.write(arr.pop()+"<br>"); //pop() 返回“b”;
			document.write(arr.pop()+"<br>"); //pop() 返回“b”;
			document.write(arr.pop()+"<br>"); //pop() 返回“b”;
			document.write(arr); //打印[1,2,"a"]
			
		</script>
	</head>
	<body>
		
	</body>
</html>
